package heliotrope.res
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.events.Event;
	
	public class BitmapAttacher extends Bitmap implements IResourceAttacher
	{
		public static const  RECIEVE:String = "recieve";
		public function BitmapAttacher(bitmapData:BitmapData=null, pixelSnapping:String="auto", smoothing:Boolean=false)
		{
			super(bitmapData, pixelSnapping, smoothing);
		}
		
		public function recieve(resource:Object):void
		{
			this.bitmapData = resource as BitmapData;
			dispatchEvent(new Event(RECIEVE));
		}
	}
}
